<?php
namespace app\api\controller;
use app\api\controller\Api;

class Ceshi extends Api
{
    public function initialize() {
        parent::initialize();
        $this->service = model('site/Site', 'service');
    }

    /**
     * 获取文章详情
     * @return array
     *
     * @author <xiachao>
     * @date   2018/11/19 18:42
     */
    public function create() {
        
        $result = $this->service->create('测试站点',1542882402,1);
        if (!$result) {
            return $this->response($this->service->getError(),[],-100003);
        }
        return $this->response("success", $result);
    }

}